import { request } from './http.js'
// 订单
export const addSaleOrder = data => request('/business/saleOrder/add', data) // 新增订单
export const updateSaleOrder = data => request('/business/saleOrder/update', data) // 修改订单
export const deleteSaleOrder = data => request('/business/saleOrder/delete', data) // 删除订单
export const getSaleOrderList = data => request('/business/saleOrder/getList', data) // 查询订单列表
export const exportSaleOrderList = data => request('/business/saleOrder/export', data) // 导出订单列表数据
export const getStatistics = data => request('/business/saleOrder/getStatistics', data) // 根据时间查询营收、成本、利润统计数据
// 公司
export const addCompany = data => request('/business/company/add', data) // 新增公司
export const updateCompany = data => request('/business/company/update', data) // 修改公司
export const deleteCompany = data => request('/business/company/delete', data) // 删除公司
export const getAllCompany = data => request('/business/company/getAll', data) // 查询全部公司
// 业务员
export const addCompanySale = data => request('/business/companySale/add', data) // 新增销售
export const updateCompanySale = data => request('/business/companySale/update', data) // 修改销售
export const deleteCompanySale = data => request('/business/companySale/delete', data) // 删除销售
export const getAllCompanySaleByCompanyId = data => request('/business/companySale/getAllByCompanyId', data) // 查询公司销售
// 客户
export const addCustomer = data => request('/business/customer/add', data) // 新增客户
export const updateCustomer = data => request('/business/customer/update', data) // 修改客户
export const deleteCustomer = data => request('/business/customer/delete', data) // 删除客户
export const getAllCustomer = data => request('/business/customer/getAll', data) // 查询全部客户
// 计量单位
export const addUnit = data => request('/business/unit/add', data) // 新增计量单位
export const updateUnit = data => request('/business/unit/update', data) // 修改计量单位
export const deleteUnit = data => request('/business/unit/delete', data) // 删除计量单位
export const getAllUnit = data => request('/business/unit/getAll', data) // 查询全部计量单位
// 品牌
export const addProductBrand = data => request('/business/productBrand/add', data) // 新增品牌
export const updateProductBrand = data => request('/business/productBrand/update', data) // 修改品牌
export const deleteProductBrand = data => request('/business/productBrand/delete', data) // 删除品牌
export const getAllProductBrand = data => request('/business/productBrand/getAll', data) // 查询全部品牌
// 货号
export const addProductBrandArticleNo = data => request('/business/productBrandArticleNo/add', data) // 新增货号
export const updateProductBrandArticleNo = data => request('/business/productBrandArticleNo/update', data) // 修改货号
export const deleteProductBrandArticleNo = data => request('/business/productBrandArticleNo/delete', data) // 删除货号
export const getAllProductBrandArticleNoByProductBrandId = data => request('/business/productBrandArticleNo/getAllByProductBrandId', data) // 查询品牌货号
// 规格
export const addProductSpecification = data => request('/business/productSpecification/add', data) // 新增规格
export const updateProductSpecification = data => request('/business/productSpecification/update', data) // 修改规格
export const deleteProductSpecification = data => request('/business/productSpecification/delete', data) // 删除规格
export const getAllProductSpecification = data => request('/business/productSpecification/getAll', data) // 查询全部规格
// 供应商
export const addProductSupplier = data => request('/business/productSupplier/add', data) // 新增供应商
export const updateProductSupplier = data => request('/business/productSupplier/update', data) // 修改供应商
export const deleteProductSupplier = data => request('/business/productSupplier/delete', data) // 删除供应商
export const getAllProductSupplier = data => request('/business/productSupplier/getAll', data) // 查询全部供应商
// 采购人
export const addPurchaser = data => request('/business/customerPurchaser/add', data) // 新增采购人
export const updatePurchaser = data => request('/business/customerPurchaser/update', data) // 修改采购人
export const deletePurchaser = data => request('/business/customerPurchaser/delete', data) // 删除采购人
export const getAllPurchaserByCustomerId = data => request('/business/customerPurchaser/getAllByCustomerId', data) // 查询全部采购人
